<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ec: ec::Date Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ec
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>ec</b></li><li class="navelem"><a class="el" href="classec_1_1Date.html">Date</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classec_1_1Date-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ec::Date Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>日期类  
 <a href="classec_1_1Date.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="date_8h_source.html">date.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a87b10f3e182109a78d3b68e9b1ed20e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a> ()</td></tr>
<tr class="separator:a87b10f3e182109a78d3b68e9b1ed20e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8862acf628e847927edaea397113036b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a8862acf628e847927edaea397113036b">Date</a> (time_t <a class="el" href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">stamp</a>)</td></tr>
<tr class="separator:a8862acf628e847927edaea397113036b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa73c77460f766467202a9695b7b7649c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#aa73c77460f766467202a9695b7b7649c">Date</a> (const <a class="el" href="classec_1_1Time.html">Time</a> &amp;time)</td></tr>
<tr class="separator:aa73c77460f766467202a9695b7b7649c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3e63bec9accf142fe9a238a43e93626"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3e63bec9accf142fe9a238a43e93626"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Date</b> (const <a class="el" href="classec_1_1Date.html">Date</a> &amp;date)</td></tr>
<tr class="separator:ae3e63bec9accf142fe9a238a43e93626"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dae4bdb08788d69fcbbb0a0233e27a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a1dae4bdb08788d69fcbbb0a0233e27a1">Date</a> (int <a class="el" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a>, int <a class="el" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a>, int <a class="el" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">day</a>, int <a class="el" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a>=0, int <a class="el" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a>=0, int <a class="el" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>=0)</td></tr>
<tr class="memdesc:a1dae4bdb08788d69fcbbb0a0233e27a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">以指定时间构造  <a href="#a1dae4bdb08788d69fcbbb0a0233e27a1">More...</a><br/></td></tr>
<tr class="separator:a1dae4bdb08788d69fcbbb0a0233e27a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a991e12c24956f398a2d86ddaf8e99e2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a991e12c24956f398a2d86ddaf8e99e2f">set</a> (time_t <a class="el" href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">stamp</a>)</td></tr>
<tr class="separator:a991e12c24956f398a2d86ddaf8e99e2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae94b1e3c919d58e5539088e863d1ba0d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ae94b1e3c919d58e5539088e863d1ba0d">clone</a> () const </td></tr>
<tr class="separator:ae94b1e3c919d58e5539088e863d1ba0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae376652bff3f8476f948c14cb00601c5"><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">stamp</a> () const </td></tr>
<tr class="separator:ae376652bff3f8476f948c14cb00601c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9ef9967be21c60db8a78dc5d0e46ab4"><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ad9ef9967be21c60db8a78dc5d0e46ab4">utcStamp</a> () const </td></tr>
<tr class="separator:ad9ef9967be21c60db8a78dc5d0e46ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37f8cee14d869d9b132700f8568270de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Time.html">Time</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a37f8cee14d869d9b132700f8568270de">toTime</a> () const </td></tr>
<tr class="separator:a37f8cee14d869d9b132700f8568270de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0566e90d744f4d1d8d5490a9be7a5bbc"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a0566e90d744f4d1d8d5490a9be7a5bbc">toString</a> () const </td></tr>
<tr class="separator:a0566e90d744f4d1d8d5490a9be7a5bbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8ff77d7111044313c6d07c1096c7330"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a> () const </td></tr>
<tr class="separator:ad8ff77d7111044313c6d07c1096c7330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f1a6ea36ce7a64d2aa43c93a992bcd5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a> () const </td></tr>
<tr class="separator:a8f1a6ea36ce7a64d2aa43c93a992bcd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0544c98d04060feb7345092fb60b8065"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">day</a> () const </td></tr>
<tr class="separator:a0544c98d04060feb7345092fb60b8065"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c5252eb904dba193e2347f955d986f6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a> () const </td></tr>
<tr class="separator:a5c5252eb904dba193e2347f955d986f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a572776fe397fd2e25455f23a9de91d2d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a> () const </td></tr>
<tr class="separator:a572776fe397fd2e25455f23a9de91d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62f978e3fff3e38682bd9c4876beea5d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a> () const </td></tr>
<tr class="separator:a62f978e3fff3e38682bd9c4876beea5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fd30981481e444ae07f908b447ce639"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a9fd30981481e444ae07f908b447ce639">week</a> () const </td></tr>
<tr class="separator:a9fd30981481e444ae07f908b447ce639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02c5f9f15c4316e6a46d4ee113ab1b15"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a02c5f9f15c4316e6a46d4ee113ab1b15">yearDay</a> () const </td></tr>
<tr class="separator:a02c5f9f15c4316e6a46d4ee113ab1b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a89c8fd2f2244a6524f0149c31f51f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a9a89c8fd2f2244a6524f0149c31f51f1">setYear</a> (int <a class="el" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a>)</td></tr>
<tr class="separator:a9a89c8fd2f2244a6524f0149c31f51f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9de7e244d6d3c0b934c8226ec2a58eb4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a9de7e244d6d3c0b934c8226ec2a58eb4">setMonth</a> (int <a class="el" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a>)</td></tr>
<tr class="separator:a9de7e244d6d3c0b934c8226ec2a58eb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e0b3d8c7e82d8d5e0367e3aaf5753e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a6e0b3d8c7e82d8d5e0367e3aaf5753e6">setDay</a> (int <a class="el" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">day</a>)</td></tr>
<tr class="separator:a6e0b3d8c7e82d8d5e0367e3aaf5753e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace13c15d6883dfdddef61dfaca003a46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ace13c15d6883dfdddef61dfaca003a46">setHour</a> (int <a class="el" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a>)</td></tr>
<tr class="separator:ace13c15d6883dfdddef61dfaca003a46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4de51e0906fa33907044f3ac4747b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#aca4de51e0906fa33907044f3ac4747b7">setMinute</a> (int <a class="el" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a>)</td></tr>
<tr class="separator:aca4de51e0906fa33907044f3ac4747b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dd73608deaa5f29c14a558190c9a232"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a2dd73608deaa5f29c14a558190c9a232">setSecond</a> (int <a class="el" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>)</td></tr>
<tr class="separator:a2dd73608deaa5f29c14a558190c9a232"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62f053cb6c9e23173b494fd420c58b7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a62f053cb6c9e23173b494fd420c58b7b">addYear</a> (int <a class="el" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a>)</td></tr>
<tr class="separator:a62f053cb6c9e23173b494fd420c58b7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8611507e4a92fd7abd0b5ba9a3503c1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a8611507e4a92fd7abd0b5ba9a3503c1c">addMonth</a> (int <a class="el" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a>)</td></tr>
<tr class="separator:a8611507e4a92fd7abd0b5ba9a3503c1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0903b4862d9ffdda4308a7b403235f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ae0903b4862d9ffdda4308a7b403235f3">addSecond</a> (int <a class="el" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>)</td></tr>
<tr class="separator:ae0903b4862d9ffdda4308a7b403235f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a199dad3bfafc2cb4d16bff81683d6cca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a199dad3bfafc2cb4d16bff81683d6cca">sharpYear</a> ()</td></tr>
<tr class="separator:a199dad3bfafc2cb4d16bff81683d6cca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29f26d3467fcc160ec499da528ddac03"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a29f26d3467fcc160ec499da528ddac03">sharpMonth</a> ()</td></tr>
<tr class="separator:a29f26d3467fcc160ec499da528ddac03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98678021cafaa5e9e4679fc4d730bc7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a98678021cafaa5e9e4679fc4d730bc7c">sharpWeek</a> ()</td></tr>
<tr class="separator:a98678021cafaa5e9e4679fc4d730bc7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a327e2a4dc6386e97b37888b583023eea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a327e2a4dc6386e97b37888b583023eea">sharpDay</a> ()</td></tr>
<tr class="separator:a327e2a4dc6386e97b37888b583023eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad92119be62b4a7389233616ec6570b55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ad92119be62b4a7389233616ec6570b55">sharpHour</a> ()</td></tr>
<tr class="separator:ad92119be62b4a7389233616ec6570b55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e9575e8c724584871afd31c9bd3ff8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classec_1_1Date.html">Date</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a4e9575e8c724584871afd31c9bd3ff8b">sharpMinute</a> ()</td></tr>
<tr class="separator:a4e9575e8c724584871afd31c9bd3ff8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab57efb14c24f86b7b3f80457ec4ff930"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#ab57efb14c24f86b7b3f80457ec4ff930">isLeapYear</a> () const </td></tr>
<tr class="separator:ab57efb14c24f86b7b3f80457ec4ff930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a7235d7bf12af52f16bccded463eeab"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a1a7235d7bf12af52f16bccded463eeab">isEndOfMonth</a> () const </td></tr>
<tr class="separator:a1a7235d7bf12af52f16bccded463eeab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cfe68c456d2de8aef5e2d168fd9ca61"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a9cfe68c456d2de8aef5e2d168fd9ca61">getMonthDays</a> () const </td></tr>
<tr class="separator:a9cfe68c456d2de8aef5e2d168fd9ca61"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7003f97919dbfec532a4a37c4daef6d8"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classec_1_1Date.html#a7003f97919dbfec532a4a37c4daef6d8">getTimeZoneOffset</a> ()</td></tr>
<tr class="separator:a7003f97919dbfec532a4a37c4daef6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>日期类 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a87b10f3e182109a78d3b68e9b1ed20e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Date::Date </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>以当前时间构造 </p>

</div>
</div>
<a class="anchor" id="a8862acf628e847927edaea397113036b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Date::Date </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>stamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>以时间戳构造 </p>

</div>
</div>
<a class="anchor" id="aa73c77460f766467202a9695b7b7649c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Date::Date </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classec_1_1Time.html">Time</a> &amp;&#160;</td>
          <td class="paramname"><em>time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>以Time对象构造 </p>

</div>
</div>
<a class="anchor" id="a1dae4bdb08788d69fcbbb0a0233e27a1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ec::Date::Date </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minute</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>second</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>以指定时间构造 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">year</td><td>年，[1900) </td></tr>
    <tr><td class="paramname">month</td><td>月，[1,12] </td></tr>
    <tr><td class="paramname">day</td><td>日，[1,31] </td></tr>
    <tr><td class="paramname">hour</td><td>时，[0,23]，默认为0 </td></tr>
    <tr><td class="paramname">minute</td><td>分，[0,59]，默认为0 </td></tr>
    <tr><td class="paramname">second</td><td>秒，[0,60]，默认为0 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8611507e4a92fd7abd0b5ba9a3503c1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::addMonth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>加/减 月 </p>

</div>
</div>
<a class="anchor" id="ae0903b4862d9ffdda4308a7b403235f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::addSecond </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>加/减 秒 </p>

</div>
</div>
<a class="anchor" id="a62f053cb6c9e23173b494fd420c58b7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::addYear </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>加/减 年 </p>

</div>
</div>
<a class="anchor" id="ae94b1e3c919d58e5539088e863d1ba0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> ec::Date::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>克隆当前对象 </p>

</div>
</div>
<a class="anchor" id="a0544c98d04060feb7345092fb60b8065"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::day </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取日，[1,31] </p>

</div>
</div>
<a class="anchor" id="a9cfe68c456d2de8aef5e2d168fd9ca61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::getMonthDays </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取在本月中的天数 </p>

</div>
</div>
<a class="anchor" id="a7003f97919dbfec532a4a37c4daef6d8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::getTimeZoneOffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回当前时区，比如UTC+8的时区为-28800 </p>

</div>
</div>
<a class="anchor" id="a5c5252eb904dba193e2347f955d986f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::hour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取时，[0,23] </p>

</div>
</div>
<a class="anchor" id="a1a7235d7bf12af52f16bccded463eeab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ec::Date::isEndOfMonth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否是一月的最后一天 </p>

</div>
</div>
<a class="anchor" id="ab57efb14c24f86b7b3f80457ec4ff930"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ec::Date::isLeapYear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否是闰年 </p>

</div>
</div>
<a class="anchor" id="a572776fe397fd2e25455f23a9de91d2d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::minute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取分，[0,59] </p>

</div>
</div>
<a class="anchor" id="a8f1a6ea36ce7a64d2aa43c93a992bcd5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::month </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取月，[1,12] </p>

</div>
</div>
<a class="anchor" id="a62f978e3fff3e38682bd9c4876beea5d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::second </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取秒，[0,60] </p>

</div>
</div>
<a class="anchor" id="a991e12c24956f398a2d86ddaf8e99e2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec::Date::set </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>stamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置时间戳 </p>

</div>
</div>
<a class="anchor" id="a6e0b3d8c7e82d8d5e0367e3aaf5753e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setDay </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置日，[1,31] </p>

</div>
</div>
<a class="anchor" id="ace13c15d6883dfdddef61dfaca003a46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setHour </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置时，[0,23] </p>

</div>
</div>
<a class="anchor" id="aca4de51e0906fa33907044f3ac4747b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setMinute </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置分，[0,59] </p>

</div>
</div>
<a class="anchor" id="a9de7e244d6d3c0b934c8226ec2a58eb4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setMonth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置月，[1,12] </p>

</div>
</div>
<a class="anchor" id="a2dd73608deaa5f29c14a558190c9a232"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setSecond </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置秒，[0,60] </p>

</div>
</div>
<a class="anchor" id="a9a89c8fd2f2244a6524f0149c31f51f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::setYear </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置年，[1900, ) </p>

</div>
</div>
<a class="anchor" id="a327e2a4dc6386e97b37888b583023eea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpDay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一天的开始 </p>

</div>
</div>
<a class="anchor" id="ad92119be62b4a7389233616ec6570b55"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpHour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一小时的开始 </p>

</div>
</div>
<a class="anchor" id="a4e9575e8c724584871afd31c9bd3ff8b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpMinute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一分钟的开始 </p>

</div>
</div>
<a class="anchor" id="a29f26d3467fcc160ec499da528ddac03"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpMonth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一月的开始 </p>

</div>
</div>
<a class="anchor" id="a98678021cafaa5e9e4679fc4d730bc7c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpWeek </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一周的开始 </p>

</div>
</div>
<a class="anchor" id="a199dad3bfafc2cb4d16bff81683d6cca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Date.html">Date</a> &amp; ec::Date::sharpYear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为一年的开始 </p>

</div>
</div>
<a class="anchor" id="ae376652bff3f8476f948c14cb00601c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">time_t ec::Date::stamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取时间戳 </p>

</div>
</div>
<a class="anchor" id="a0566e90d744f4d1d8d5490a9be7a5bbc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string ec::Date::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>转换为字符串 </p>

</div>
</div>
<a class="anchor" id="a37f8cee14d869d9b132700f8568270de"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classec_1_1Time.html">Time</a> ec::Date::toTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>转换为Time </p>

</div>
</div>
<a class="anchor" id="ad9ef9967be21c60db8a78dc5d0e46ab4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">time_t ec::Date::utcStamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取UTC时间戳 </p>

</div>
</div>
<a class="anchor" id="a9fd30981481e444ae07f908b447ce639"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::week </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取星期，[1,7] </p>

</div>
</div>
<a class="anchor" id="ad8ff77d7111044313c6d07c1096c7330"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取年，[1900, ) </p>

</div>
</div>
<a class="anchor" id="a02c5f9f15c4316e6a46d4ee113ab1b15"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ec::Date::yearDay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取一年中的天，[0,365] </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/ec/<a class="el" href="date_8h_source.html">date.h</a></li>
<li>src/date.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 12 2016 14:15:08 for ec by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
